import 'package:bookshelf/generated/json/base/json_convert_content.dart';
import 'package:bookshelf/entity/face_search_entity.dart';

FaceSearchEntity $FaceSearchEntityFromJson(Map<String, dynamic> json) {
	final FaceSearchEntity faceSearchEntity = FaceSearchEntity();
	final String? groupId = jsonConvert.convert<String>(json['group_id']);
	if (groupId != null) {
		faceSearchEntity.groupId = groupId;
	}
	final String? userId = jsonConvert.convert<String>(json['user_id']);
	if (userId != null) {
		faceSearchEntity.userId = userId;
	}
	final String? userName = jsonConvert.convert<String>(json['user_name']);
	if (userName != null) {
		faceSearchEntity.userName = userName;
	}
	final String? similarity = jsonConvert.convert<String>(json['similarity']);
	if (similarity != null) {
		faceSearchEntity.similarity = similarity;
	}
	return faceSearchEntity;
}

Map<String, dynamic> $FaceSearchEntityToJson(FaceSearchEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['group_id'] = entity.groupId;
	data['user_id'] = entity.userId;
	data['user_name'] = entity.userName;
	data['similarity'] = entity.similarity;
	return data;
}